class UrlMappings {

	static mappings = {
		"/$controller/$action?/$params?"{
			constraints {
				// apply constraints here
			}
		}
        //rws = RESTful Web Service, $itemName can be either Listing Name or Customer Name (or bid name, if it was supported)
        //http://localhost:8080/auctionhaus/rws/customer/seller25
        //http://localhost:8080/auctionhaus/rws/customer/buyer4
        //http://localhost:8080/auctionhaus/rws/listing/ListItem 1
        "/rws/$controller/$itemName?" {
            action = 'xmlList'
        }

        //Alternate RESTful endpoint.  Using the show function and using "withFormat"
        //http://localhost:8080/auctionhaus/restful/listing/9/
        //http://localhost:8080/auctionhaus/restful/listing/9.xml
        //http://localhost:8080/auctionhaus/restful/listing/9.html
        "/restful/listing/$id/$format?" {
            controller = 'listing'
            action = 'show'

        }

        //Alternate RESTful endpoint.  Using the show function and using "withFormat"
        //http://localhost:8080/auctionhaus/restful/listing/9/
        //http://localhost:8080/auctionhaus/restful/listing/9.xml
        //http://localhost:8080/auctionhaus/restful/listing/9.html
        "/restful/customer/$id/$format?" {
            controller = 'customer'
            action = 'show'

        }

		"/"(controller:"listing", action:"list")
		"500"(view:'/error')
	}
}
